class BaseResult {
  code: number | null = null
  success: boolean = false
  message: string = ''
  token: string = ''
}

class PageInfo {
  pageNumber: number = 1
  pageSize: number = 5
  pageCount: number = 0
  total: number = 0
}

class BaseListResult<T> extends BaseResult {
  page: PageInfo = new PageInfo()
  list: Array<T> = []
}

export default BaseResult
export { BaseResult as BaseResult, PageInfo as PageInfo, BaseListResult as BaseListResult }
